package cn.edu.tju.cas.dao;

import java.io.Serializable;
import java.util.List;

/**
 * Created by catold on 16/2/20.
 */
public interface BaseDao<T extends Serializable> {
    T findById(final int id);

    List<T> findAll();

    Integer save(final T entity);

    T update(T entity);

    void delete(final T entity);

    void deleteById(final int entityId);
}
